package com.NetSunWeiQin.chapter06.echoServer;

import java.net.*;

public class EchoContentHandlerFactory implements ContentHandlerFactory {


    public ContentHandler createContentHandler(String mimeType) {
        if (mimeType.equals("text/plain")) {
            return new EchoContentHandler();
        } else {
            return null;
        }
    }
}

